package com.kgc.scd.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 * @author jiangguoqiang
 * @since 2022-11-17
 */
@Data
@TableName("shop_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("gender")
    private Boolean gender;

    @TableField("birthday")
    private Integer birthday;

    /**
     * 注册时间
     */
    @ApiModelProperty("注册时间")
    @TableField("register_time")
    private Integer registerTime;

    /**
     * 最后一次登录时间
     */
    @ApiModelProperty("最后一次登录时间")
    @TableField("last_login_time")
    private Integer lastLoginTime;

    @TableField("last_login_ip")
    private String lastLoginIp;

    /**
     * 是否vip
     */
    @ApiModelProperty("是否vip")
    @TableField("user_level_id")
    private boolean userLevelId;

    @TableField("nickname")
    private String nickname;

    @TableField("mobile")
    private String mobile;

    /**
     * 注册_ip
     */
    @ApiModelProperty("注册_ip")
    @TableField("register_ip")
    private String registerIp;

    @TableField("weixin_openid")
    private String weixinOpenid;

    @TableField("head_img")
    private String headImg;

    /**
     * 会员更新时间
     */
    @ApiModelProperty("会员更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;


}